package com.gamemost.entity;

import java.util.HashMap;
import java.util.Iterator;

import android.graphics.Bitmap;
import android.graphics.drawable.Drawable;

public class BookService extends Book{
	HashMap<String, String> map = new HashMap<String, String>();
    public boolean isDownloadSuccess = false;
	public void put(String tag, String val) {
		map.put(tag, val);
	}

	public String get(String tag) {
		String s = map.get(tag);
		if (s == null) s = "";
		return s;
		
	}

	public HashMap<String, String> getMap() {
		return map;
	}

	@Override
	public String toString() {
		String data = "";
		Iterator<String> keys = map.keySet().iterator();
		while (keys.hasNext()) {
			String s = keys.next();
			data += s + " is " + map.get(s) + "\n";
		}
		return data;
	}

	public Bitmap drawable;

	public Bitmap getBitmap() {
		return drawable;
	}

	public void setBitmap(Bitmap drawable) {
		this.drawable = drawable;
	}
}
